<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">用户信息</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('user/userInfo')}">{:lang('ADMIN_USER_USERINFO')}</a></li>
                                <li><a href="{:url('setting/password')}">{:lang('ADMIN_SETTING_PASSWORD')}</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form class="layui-form js-ajax-form" role="form" method="post" action="{:url('User/userinfoPost')}">
                                        <div class="layui-form-item">
                                            <label for="input-user-nickname" class="layui-form-label">{:lang('NICKNAME')}</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-user-nickname" name="user_nickname" value="{$user_nickname}">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-gender" class="layui-form-label">{:lang('GENDER')}</label>
                                            <div class="layui-input-block">
                                                <select name="sex" id="input-gender">
                                                    <php>$sexs=array("0"=>lang('GENDER_SECRECY'),"1"=>lang('MALE'),"2"=>lang('FEMALE'));</php>
                                                    <foreach name="sexs" item="vo">
                                                        <php>$sexselected=$key==$sex?"selected":"";</php>
                                                        <option value="{$key}" {$sexselected}>{$vo}</option>
                                                    </foreach>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-birthday" class="layui-form-label">{:lang('BIRTHDAY')}</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input js-bootstrap-date" id="input-birthday" name="birthday" value="{:date('Y-m-d',$birthday)}" placeholder="2013-01-04">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-user_url" class="layui-form-label">{:lang('WEBSITE')}</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" id="input-user_url" name="user_url" value="{$user_url}" placeholder="http://thinkcmf.com">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-signature" class="layui-form-label">{:lang('SIGNATURE')}</label>
                                            <div class="layui-input-block">
                                                <textarea class="layui-textarea" id="input-signature" name="signature" placeholder="{:lang('SIGNATURE')}">{$signature}</textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-layout-admin">
                                            <div class="layui-input-block">
                                            	<div class="layui-footer" style="left:0;">
                                            		<button type="submit" class="layui-btn js-ajax-submit">{:lang('SAVE')}</button>
                                            	</div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>